<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取 COM 组件的属性值 [被废弃]</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.com-get-active-object.html">com_get_active_object</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.com-invoke.html">com_invoke</a></div>
 <div class="up"><a href="ref.com.html">COM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.com-get" class="refentry">
  <div class="refnamediv">
    <h1 class="refname">com_get</h1>
    <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">com_get</span> &mdash; <span class="dc-title">获取 COM 组件的属性值 [被废弃]</span></p>

  </div>
  <div class="refsect1 description" id="refsect1-function.com-get-description"><h3 class="title">说明</h3> 
  <p class="para">Deprecated, use the OO syntax instead.</p>
  <p class="para">
    <div class="example" id="example-5242">
      <p><strong>Example #1 OO syntax</strong></p>
      <div class="example-contents">
        <div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;do&nbsp;this<br /></span><span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$obj</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">property</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//&nbsp;instead&nbsp;of&nbsp;this:<br /></span><span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">com_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$obj</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'property'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
</div>

    </div>
  </p></div>

  <div class="refsect1 notes" id="refsect1-function.com-get-notes"><h3 class="title">注释</h3> <blockquote class="note"><p><strong class="note">Note</strong>: 
<span class="simpara">
 此函数在 PHP 5 中不再存在. 你应该使用更自然的面向对象语法操作属性及方法。
</span>
</p></blockquote>
</div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.com-get-active-object.html">com_get_active_object</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.com-invoke.html">com_invoke</a></div>
 <div class="up"><a href="ref.com.html">COM 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
